package com.xz.springcloud.service;

import com.xz.springcloud.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：xz
 * @Date：2023/3/20
 */
@FeignClient(value = "seata-storage-service")
@RequestMapping("/storage")
public interface StorageService {

    @PostMapping(value = "/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);

}
